﻿using LunchLearn.WebApi.Unity;
using Microsoft.AspNet.SignalR;
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;

namespace LunchLearn.WebApi.App_Start
{
    public static class HubConfig
    {
        public static void Register(RouteCollection routes, IUnityContainer container)
        {
            var configuration = new HubConfiguration();
            configuration.Resolver = new HubDependencyResolver(container);
            configuration.EnableDetailedErrors = true;
            routes.MapHubs(configuration);
        }
    }
}